package com.itheima.object;

public class Student {
     String name;
     double chinese;
     double math;

     public void printTotal(){
         System.out.println(name+"的总成绩是"+(chinese+math));
     }
     public void printAverage(){
         System.out.println(name+"的平均成绩是"+((chinese+math)/2.0));
     }
}
